<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class References extends Page {

	public static $db = array(
	);

	public static $has_one = array(
	);

}
class References_Controller extends Page_Controller {
     function getLastNewsConsultancy()
     {
        /* $new=  DataObject::get('NewInformation','','Date DESC');
         $lasestnew = new DataObjectSet();
         foreach ($new as $data)
         {
             $date=$data->Date;
             $title=$data->Titile;
             $content=$data->DetailContent;
             $record=array(
               "Date"         =>$date,
               "Title"        =>$title,
               "ContentDetail"=>$content 
             );
             $lasestnew->push(new ArrayData($record));
             
         }
         return $lasestnew;*/
          if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) $_GET['start'] = 0;
            $SQL_start = (int)$_GET['start'];
            $doSet = DataObject::get(
            $callerClass = "NewInformation",
            $filter = "",
            $sort = "Date DESC",
            $join = "",
            $limit = "{$SQL_start},4"
         );
           return $doSet ? $doSet : false;
     }
}
?>
